﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Atlepage.Syntactic
{
    public enum OperatorAssociativity
    {
        Left,
        Right,
        None,
    }

    [AttributeUsage(AttributeTargets.Class, AllowMultiple=true)]
    public class OperatorAttribute : Attribute
    {
        public string Name { get; private set; }
        public OperatorAssociativity Associativity { get; private set; }
        internal int Type { get; set; }
        internal int Precidence { get; set; }

        public OperatorAttribute(string name, OperatorAssociativity associativity)
        {
            this.Name = name;
            this.Associativity = associativity;
        }
    }
}
